package loadgen;


public class CPUStresser {

	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new CPUStresser().generateLoad(3000);
	}
	
	/**
	 * Generates CPU load.
	 * @param timeout The time in milliseconds to keep CPU busy.
	 */
	public void generateLoad(long timeout)
	{
		long x = 0;
		long startTime = System.currentTimeMillis();
		while(System.currentTimeMillis() - startTime < timeout)
		{
			x++;
		}
		
		
	}

}
